<template>
	<view class="height-screen">
		<cu-custom bgColor="bg-white" isBack>
			<block slot="content">{{$t('msg.msgDetail')}}</block>
		</cu-custom>
		<view class="margin-ht" style="margin-top: 20rpx;">
			<view class="bg-white flex flex-direction padding radius-sm">
				<text class="one-line font-bold text-xl text-black">{{info.title}}</text>
				<text
					class="font-gray text-sm text-gray margin-tb-sm">{{info.createtime | handleDateTime('YYYY-MM-DD')}}</text>
				<u-parse :content="info.content"></u-parse>
			</view>
		</view>
	</view>
</template>

<script>
	import {
		noticeInfo
	} from '@/apis'
	export default {
		data() {
			return {
				id: null,
				info: {}
			}
		},
		onLoad(options) {
			this.id = options.id
		},
		onShow() {
			this.noticeInfo()
		},
		methods: {
			async noticeInfo() {
				const res = await noticeInfo({
					id: this.id
				})
				this.info = res
			}
		}
	}
</script>

<style lang="scss" scoped>
</style>